package com.hs.srm.admin.modules.inforecord.service;

import java.io.File;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.service.IService;
import com.hs.srm.admin.modules.inforecord.entity.InforecordEntity;
import com.hs.srm.common.utils.PageUtils;


public interface InforecordService extends IService<InforecordEntity> {

    PageUtils queryPage(Map<String, Object> params);

    boolean checkRecord(String materialCode);

    //根据物料号、工厂判断货源记录中是否有该条记录
    boolean checkRecordFromSupplyGoods(String materialCode, String factory);

    //根据物料号、工厂,供应商编码判断货源记录中是否有该条记录
    boolean checkRecordFrominfo(String materialCode, String factory, String srmCode);

    /**
     * Excel批量导入信息记录价格功能
     */
    Map<String, Object> importData(File savedFile, String username);

    //保存导入的数据
    int saveImp();
}
